<?php
/**
* @author: Pham Van Diep
* @date: 26/2/2014
*/
// check permission add new
if( !isset($AppUI) ||
	!isset($_SESSION['personal'])||
	(isset($_SESSION['personal']) &&(($_SESSION['personal']&1<<1) == 0) )||
    !isset($_GET['personalid'])
) {
	redirect(HOST_BACKEND);
}
$intPesonalId = intval($_GET['personalid']);
$this->load->library('common');
$arrNational = $this->common->getCountry();
$this->load->model('league_model','league');
$arrLeague = $this->league->getAll();
$this->smarty->assign('arrLeague',$arrLeague);
$this->smarty->assign('arrNational',$arrNational);
$this->smarty->assign('personalid',$intPesonalId);
$this->smarty->display('contract/add.tpl');